package com.yiyuplatform.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Description
 * @Author dalong
 * @Date 2021-11-08
 */

@Getter
@Setter
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
@Entity
@Table(name = "diagnose_t_records")
public class DiagnoseTRecords implements Serializable {
    private static final long serialVersionUID = 4141210117302538248L;

    /**
     * 诊断记录uuid，插入时使用uuid()生成id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "DI_ID")
    private String diId;

    /**
     * 患者ID
     */
    @Column(name = "DI_PATIENT_ID")
    private String diPatientId;

    /**
     * 患者昵称
     */
    @Column(name = "DI_PATIENT_NKNAME")
    private String diPatientNkname;

    /**
     * 诊断类型
     */
    @Column(name = "DI_TYPE_NAME")
    private String diTypeName;

    /**
     * 表单状态1:分析中，2：分析完成未诊断 3：分析完成且已诊断 4：分析完成且已诊断且患者已确认
     */
    @Column(name = "DI_STATUS")
    private String diStatus;

    /**
     * 诊断医生ID
     */
    @Column(name = "DI_DOCTORID")
    private String diDoctorid;

    /**
     * 医生诊断意见
     */
    @Column(name = "DI_DOCTOR_SUG")
    private String diDoctorSug;

    /**
     * 患者是否确认诊断结果（0,1）
     */
    @Column(name = "DI_ACK")
    private Integer diAck;

    /**
     * 诊断提交时间
     */
    @Column(name = "DI_SUBMITTIME")
    private Timestamp diSubmittime;

    /**
     * 机器分析结束时间
     */
    @Column(name = "DI_ANLTIME")
    private Timestamp diAnltime;

    /**
     * 医生诊断时间
     */
    @Column(name = "DI_DITIME")
    private Timestamp diDitime;

    /**
     * 诊断结果url
     */
    @Column(name = "DI_ANL_RESULT")
    private String diAnlResult;

    /**
     * 活动数据url
     */
    @Column(name = "DI_DATA_ACT")
    private String diDataAct;

    /**
     * 音频数据url
     */
    @Column(name = "DI_DATA_AUD")
    private String diDataAud;

}
